-@page_title ='注册灰名单账号'
.container
  .row
    .col-md-7.hidden-print.hidden-xs.hidden-sm{style: "text-align:center"}
      .reg-left
        = image_tag @ad_image, class: 'img-responsive'
    .col-md-5
      .reg-right
        %h2 手机注册
        = form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
          = devise_error_messages!
          .field
            -#= f.label :mobile
            .form-group
              .input-group{style: "width:100%"}
                -#%label{for: "user_mobile"} 手机号
                .input-group-addon 手机号
                = f.text_field :mobile, autofocus: true, class: "form-control", placeholder: "请输入手机号"
          .field
            -#= f.label :mobile
            .form-group
              -#%label{for: "user_mobile"} 验证码
              .input-group{style: "width:100%"}
                .input-group-addon 验证码
                = text_field_tag 'code', nil, id: 'sms_code', class: 'form-control'
                .input-group-addon#get-sms-code-btn{style:'cursor:pointer;'} 获取验证码
                -#%span.btn.btn-primary#get-sms-code-btn 获取验证码
                =# f.text_field :mobile, autofocus: true, class: "form-control", placeholder: "请输入验证码"
          .field
            -#= f.label :password
            .form-group
              .input-group{style: "width:100%"}
                %label{for: "user_password"} 创建密码
                = f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "请输入密码"
                - if @minimum_password_length
                  %em
                    (密码长度最短#{@minimum_password_length}位)
          -#
            .field
              -#= f.label :password_confirmation
              .form-group
                .input-group
                  %label{for: "user_password_confirmation"} 确认密码
                  = f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: "确认密码"
          .actions
            = f.submit "注册"
        %br
        = render "users/shared/links"
